Next | Prev | Up | Top | Contents | Index
User Return Value
The kernel returns 0 to the ioctl() system function unless the pfxioctl() function returns an error code. In the event of an error, the kernel returns the code the driver places in *rvalp, if any, or -1. To ensure that the user process sees a specific error code, set the code in *rvalp, and return that value.
Next | Prev | Up | Top | Contents | Index